<link rel="stylesheet" href="templates/system/userLoginSet/css/userLoginSet.css" />
<div class="pd14 vany_authority">
	<div class="vany_treeTable pd14" id="authority">
		<!--面包屑-->
		<div class="pb10" id="crumbs">
			<el-breadcrumb separator="/">
				<el-breadcrumb-item :to="{ path: '/' }">系统设置</el-breadcrumb-item>
				<el-breadcrumb-item>登录设置</el-breadcrumb-item>
			</el-breadcrumb>
		</div>
		
		<div id="userLoginSet">
			<div class="grid-content bg-purple" id="loginSet">
				<el-row>
				  <el-col :span="24"><div class="title_font">登录设置</div></el-col>
				</el-row>
				<el-form :model="userLoginSetForm" :rules="rules" ref="userLoginSetForm" label-width="140px" class="demo-ruleForm">
					<el-form-item label="登录错误次数:" prop="errorCount">
							<el-input-number v-model="userLoginSetForm.errorCount" ></el-input-number>
					</el-form-item>
					<el-form-item label="限制登录时长:" prop="limitLoginTime">
						<el-input-number v-model="userLoginSetForm.limitLoginTime" ></el-input-number>
					</el-form-item>
				</el-form>
				<el-row>
				  <el-col :span="24"><div class="title_font">发件箱设置</div></el-col>
				</el-row>
				<el-form :model="inboxForm" :rules="rules" ref="inboxForm" label-width="140px" class="demo-ruleForm">
					<el-form-item label="发件邮箱服务器:" prop="sendServer">
						<el-input :maxlength="20" v-model="inboxForm.sendServer" @input="descInput('sendServer')"  placeholder="smtp.qq.com"></el-input>
						<span class="fontNumber">{{inboxForm.sendServerInputCT}}/20</span>
					</el-form-item>
					
					<el-form-item label="发件邮箱端口:" prop="port">
						<el-input :maxlength="4" v-model="inboxForm.port" @input="descInput('port')" placeholder="25"></el-input>
						<span class="fontNumber">{{inboxForm.portInputCT}}/4</span>
					</el-form-item>
					
					<el-form-item label="发件邮箱用户名:" prop="sendUserName">
						<el-input :maxlength="20" v-model="inboxForm.sendUserName"@input="descInput('sendUserName')" placeholder="请输入发件邮箱用户名"></el-input>
						<span class="fontNumber">{{inboxForm.sendUserNameInputCT}}/20</span>
					</el-form-item>
					
					<el-form-item label="发件邮箱密码:" prop="sendPassword">
						<el-input :maxlength="20" v-model="inboxForm.sendPassword" type="password" @input="descInput('sendPassword')" placeholder="请输入发件邮箱密码"></el-input>
						<span class="fontNumber">{{inboxForm.sendPasswordInputCT}}/20</span>
					</el-form-item>
					
					<el-form-item label="测试收件箱:" prop="testEmail">
						<el-input :maxlength="20" v-model="inboxForm.testEmail" @input="descInput('testEmail')" placeholder="king@qq.com"></el-input>
						<span class="fontNumber">{{inboxForm.testEmailInputCT}}/20</span>
					</el-form-item>
					
					<el-form-item label="找回密码内容:" prop="findPwdContent">
						<el-input type="textarea":rows="5" v-model="inboxForm.findPwdContent" @input="descInput" ></el-input>
					</el-form-item>
					<el-form-item>
						<el-button type="primary" @click="submitForm('inboxForm')">确定</el-button>
						<el-button type="primary" @click="resetForm('inboxForm')">重置</el-button>
						<!-- <el-button type="primary" @click="testEmial('inboxForm')">测试邮箱</el-button> -->
					</el-form-item>
				</el-form>
					
				<!--提交信息-->
				<el-dialog title="提示" :visible.sync="dialogVisible" size="tiny" class="title_dialog">
					<span>确定提交系统设置信息吗？</span>
					<p>确定后将修改用户的邮箱信息</p>
					<span slot="footer" class="dialog-footer">
						<el-button type="primary" @click="tijiao(true)">确 定</el-button>
						<el-button @click="tijiao(false)">取 消</el-button>
					</span>
				</el-dialog>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript" src="templates/system/userLoginSet/js/userLoginSet.js?ts=new Date().getTime()"></script>